package com.dci.service.impl.node;

import com.dci.dao.pms.node.NodeMatterInfoMapper;
import com.dci.model.node.NodeMatterInfo;
import com.dci.result.JsonData;
import com.dci.service.node.NodeMatterInfoService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * All rights Reserved, Designed By 姑苏区政府大数据中心
 *
 * @version V1.0
 * @Title: null.java
 * @Package com.dci.service.impl.node
 * @Description: 节点状态实现类
 * @author: 张星亮
 * @date: 2019/2/25
 * @Copyright: 2019 姑苏区政府大数据中心. All rights reserved.
 * 注意：本内容仅限于姑苏区政府大数据中心内部传阅，禁止外泄以及用于其他的商业目
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class NodeMatterInfoServiceImpl implements NodeMatterInfoService {

    @Resource
    private NodeMatterInfoMapper nodeMatterInfoMapper;


    @Override
    public JsonData selectByNodeId(NodeMatterInfo record) {
        List<NodeMatterInfo> list = nodeMatterInfoMapper.selectByNodeId(record);
        return JsonData.success(list, 906);
    }
}
